package glassline.mock;

import transducer.*;
import glassline.Glass;
import glassline.interfaces.Conveyor;
import glassline.interfaces.Oven;
import glassline.interfaces.Shipper;

public class MockConveyor extends MockAgent implements Conveyor, TReceiver{
	
	public Transducer myTransducer;
	public EventLog log = new EventLog();

	public MockConveyor(Transducer t, String name) {
		super(name);
		myTransducer = t;
	}

	@Override
	public void eventFired(TChannel channel, TEvent event, Object[] args) {		
	}

	@Override
	public void msgHereIsGlass(Glass g) {
		log.add(new LoggedEvent("Received message msgHereIsGlass from previous entity"));
		
	}

	@Override
	public void msgIamDoneToOven() {
		log.add(new LoggedEvent("Received message msgIamDoneToOven"));
		
	}

	@Override
	public void msgIamDoneToShipper() {
		log.add(new LoggedEvent("ShipperAgent messaged it is ready for a new piece of glass."));
	}

	@Override
	public void setShipper(Shipper s) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void setOven(Oven o) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void msgHereIsGlassFromOven(Glass g) {
		log.add(new LoggedEvent("Received message msgHereIsGlass from Oven"));
		
	}

}
